package com.git.auto.login;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.Ordered;

/**
 * Created by wangquan on 2017/4/18.
 */
@ConfigurationProperties(prefix = "login")
@ConditionalOnMissingBean
@Data
public class LoginProperties {

    /**
     * 拦截器路径
     */
    private String[] urlPatterns = {"/**"};

    /**
     * 排除的url列表；被排除的url将不参与jwt验证；
     */
    private String[] excludedUrls = {};

    /**
     * 过滤器加载顺序，数字越小优先级越高，可以是负数；
     */
    private int order = Ordered.LOWEST_PRECEDENCE;
}